for id in $( grep "Существительное" list.txt | grep "единственное / мно" | grep -E -o "pool_id=[0-9]+" | grep -E -o "[0-9]+" | sort -u ); do
  wget "http://opencorpora.org/pools.php?act=samples&pool_id=$id&tabs&mod_ans" --output-document=pool_$id.tab
done
